package com.lehoon.tomato.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Supplier extends Model<Supplier> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 供货商名称
     */
    private String name;

    /**
     * 最低进货金额
     */
    private BigDecimal startingPrice;

    /**
     * 直营最低进货价
     */
    private BigDecimal saleStartingPrice;

    /**
     * 状态；0)删除，1）正常,2）关闭
     */
    private String state;

    private String image;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 省份id
     */
    private Integer provinceId;

    /**
     * 城市id
     */
    private Integer cityId;

    /**
     * 城市区域id
     */
    private Integer areaId;

    /**
     * 银行id
     */
    private Integer bankId;

    /**
     * 支行名
     */
    private String bankSubName;

    /**
     * 开户名
     */
    private String bankUser;

    /**
     * 银行卡号
     */
    private String bankNum;

    /**
     * 是否支持货到付款
     */
    private Integer payOnDelivery;

    private Integer updateTime;

    /**
     * 创建时间
     */
    private Integer createTime;

    /**
     * 金额
     */
    private BigDecimal money;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
